Skip to main content

Google Drive

Description

Google Drive Plugin has been designed to perform tasks on Google Drive.

Prerequisites:

  • Google developer console account should be created: https://console.developers.google.com/.
  • APIs for Google Drive should be enabled.
  • Client ID and Client Secret should be generated from the Credentials tab. In exchange for the Client ID and Client Secret, a Refresh token can be generated.
tip

For information about Refresh Token expiry, see https://developers.google.com/identity/protocols/oauth2#expiration

  • The Get button fetches list of file or folder that belong to the owner only.
  • For information about Google Supported MIME Type, see https://developers.google.com/drive/api/v3/mime-types
  • It is recommended that users should not use files or folders that are deleted or in trash or in the bin for any operations through Google Drive plugin.

References:

  • Google Drive documentation https://developers.google.com/drive/api/v3

  • Refer to Appendix 10: Google Drive Refresh Token Generation for enabling APIs, creating Client ID and Client Secret and generating Refresh Token.

Table: Fetch File or Folder ID

1On Google Drive Right Click a file or folder and click Get Link on the popup menu. You may also copy the link.
i.If folder link value is –
https://drive.google.com/drive/folders/1qGCkdoweiydqJc65qHMK-S5i7sN3eGi9?usp=sharing
Then, folder ID is, 1qGCkdoweiydqJc65qHMK-S5i7sN3eGi9
ii.If file link value is –
https://drive.google.com/file/d/0B7IdPsPouySIV21UYVJvdlJuNk1xamNlZ1RBQU01V3FGbFR3/view?usp=sharing
Then, file ID is the value between d/ and ? – 0B7IdPsPouySIV21UYVJvdlJuNk1xamNlZ1RBQU01V3FGbFR3
2Open file or folder
i.In case of folder copy the URL from the address bar -
https://drive.google.com/drive/u/0/folders/1qGCkdoweiydqJc65qHMK-S5i7sN3eGi9
everything after folders/ is the folder ID
1qGCkdoweiydqJc65qHMK-S5i7sN3eGi9
ii.In case of files (editable by google drive) copy the URL from the address bar -
https://docs.google.com/spreadsheets/d/1A5SoOX896KyQu1NdbqYeKanRz0-KKq16r6S8SOu503Y/edit#gid=0
everything between d/ and /edit the file ID -
1A5SoOX896KyQu1NdbqYeKanRz0-KKq16r6S8SOu503Y